# Contributor: Justin Berthault <justin.berthault@zaclys.net>
# Maintainer: Justin Berthault <justin.berthault@zaclys.net>
pkgname=nodejs-clean-css
pkgver=4.2.1
pkgrel=0
pkgdesc="A fast, efficient, and well tested CSS minifier for nodejs"
url="https://github.com/jakubpawlowicz/clean/css"
arch="noarch !mips !mips64" # blocked by nodejs
license="MIT"
depends="nodejs"
makedepends="npm"
source="https://registry.npmjs.org/clean-css/-/clean-css-$pkgver.tgz"
options="!check"
builddir="$srcdir/package"

unpack() {
	# skipping unpacking, installing archive directly
	verify
}

package() {
	npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/clean-css-$pkgver.tgz
	chown -R root "$pkgdir"
}

sha512sums="e19c48e9dcb896b63a147cdf8b2d5a10e5e0bb82c8b16d8c8701b454129d7281a81ff5cb16068749d2d31abe0ef017ba03caf730ea6112223c19cd67d1e71fde  clean-css-4.2.1.tgz"
